<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.thymeleaf.org/extras/dialect"
      layout:decorate="layout/layout_login"
>
<head>
    <title>登录</title>
    <meta charset="utf-8"/>
    <link rel="stylesheet" href="../../static/asset/css/bootstrap.min.css" th:href="@{/asset/css/bootstrap.min.css}"/>
    <link rel="stylesheet" href="../../static/asset/css/base.min.css" th:href="@{/asset/css/base.min.css}"/>
    <link rel="stylesheet" href="../../static/asset/css/common/front.css" th:href="@{/asset/css/common/front.css}"/>
    <link rel="stylesheet" href="../../static/asset/css/back/login.css" th:href="@{/asset/css/back/login.css}"/>
</head>
<body>
<div layout:fragment="content" class="wrapper login-wrapper">
    <div class="login-container ">

        <div class="logo-name text-center mb-5">密码重置结果</div>

        <div th:if="${#bools.isFalse(sendResult)}">
            <div th:if="${#bools.isTrue(mobileMode)} ">
                <h4 class="text-center mb-5">发送手机短信失败：<span th:text="${sendError}">-</span></h4>
            </div>
            <div th:if="${#bools.isFalse(mobileMode)} ">
                <h4 class="text-center mb-5">发送电子邮件失败：<span th:text="${sendError}">-</span></h4>
            </div>

            <div class="text-center">
                <a href="../login.html" th:href="@{/forgot(client_id=${clientId})}" style="font-size: 16px;">再次尝试</a>
            </div>

            <div class="text-center" style="margin-top: 10px;">
                <a href="../login.html" th:href="@{/login(client_id=${clientId})}" style="font-size: 16px;">前往登录</a>
            </div>

        </div>

        <div th:if="${#bools.isTrue(sendResult)}">
            <div th:if="${#bools.isTrue(mobileMode)} ">
                <h4 class="text-center mb-5">最新密码已经发送至手机，请及时查收！</h4>
            </div>
            <div th:if="${#bools.isFalse(mobileMode)} ">
                <h4 class="text-center mb-5">最新密码已经发送至电子邮箱，请及时查收！</h4>
            </div>

            <div class="text-center">
                <a href="../login.html" th:href="@{/login(client_id=${clientId})}">前往登录</a>
            </div>

        </div>

    </div>
</div>

<th:block layout:fragment="script">
    <script type="text/javascript" src="../../static/asset/js/base.min.js" th:src="@{/asset/js/base.min.js}"></script>
    <script type="text/javascript" src="../../static/asset/js/form.min.js" th:src="@{/asset/js/form.min.js}"></script>
    <script type="text/javascript" src="../../static/asset/js/app.js" th:src="@{/asset/js/app.js}"></script>
</th:block>
</body>
</html>
